<template>
  <div id="podiv" v-html="poHtmlCode" />
</template>
<script>
import axios from 'axios';

export default {
  name: "Word",
  data() {
    return {
      message: "HideOfficeToolbar",
      poHtmlCode: "",
    };
  },
  created: function () {
    axios
      .post("/api/CommandCtrl/Word")
      .then((response) => {
        this.poHtmlCode = response.data;
      })
      .catch(function (err) {
        console.log(err);
      });
  },
  methods:{
    	//控件中的一些常用方法都在这里调用，比如保存，打印等等
			AfterDocumentOpened(){
				pageofficectrl.DisableSave=true;  //禁止保存
				pageofficectrl.DisableSaveAs=true; //禁止另存
				pageofficectrl.DisablePrint=true; //禁止打印
			}
  },
  mounted: function () {
    //将vue中的方法赋值给window
	  window.AfterDocumentOpened = this.AfterDocumentOpened;
  }
}
</script>
<style scoped>
#podiv {
    position: absolute;
    width: 100%;
    height: 100%;
}
</style>


